package com.collect.cameroon.zhiBase;

import com.trello.rxlifecycle2.LifecycleTransformer;

/**
 * 协议基类
 */
public interface BaseContract {

    interface Presenter<T extends View> {
        void attachView(T view);

        void detachView();

        void showMessage(String message);
    }

    interface View {
        /**
         * 绑定生命周期
         *
         * @param <T>
         * @return
         */
        <T> LifecycleTransformer<T> bindToLife();
    }
}